cmake_minimum_required(VERSION 3.5)

project(qtwidgetproject LANGUAGES CXX)

set(CMAKE_INCLUDE_CURRENT_DIR ON)

set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)


find_package(Qt5 COMPONENTS Widgets REQUIRED)
find_package(Qt5 REQUIRED COMPONENTS Widgets)

add_executable(qtwidgetproject
  fonts/fonts.qrc
  main.cpp
  mainwinwidget.cpp
  mainwinwidget.h
  ./classes/class_tcp.h
  ./classes/class_tcp.cpp
  #./classes/class_modbus.h
  #./classes/class_modbus.cpp
  ui/dialt.h
  ui/dialt.cpp
  ui/temperature.h
  ui/temperature.cpp
  ui/temperature.ui
  ui/dialttemp.h
  ui/dialttemp.cpp
  fonts/fontmanager.cpp
  fonts/fontmanager.h


)

#target_link_libraries(qtwidgetproject PRIVATE Qt5::Widgets modbus)
target_link_libraries(qtwidgetproject PRIVATE Qt5::Widgets)
